﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProvinceName
{
    public class ProvinceClass
    {
        public String province { get; set; }
        public List<String> cities { get; set; }
    }
    //省列表类 
    public class ZoneClass
    {
        public List<ProvinceClass> provinces { get; set; }
    }
    public class Province
    {
        public ZoneClass zones;
        public void getZones()
        {
            zones = new ZoneClass
            {
                provinces = new List<ProvinceClass>
                {
                    new ProvinceClass {province="直辖市",cities = new List<string> { "北京", "上海", "天津", "重庆" } }, 
                    new ProvinceClass {province="广东",cities=new List<string> {"广州","深圳","珠海","惠州" } }, 
                    new ProvinceClass {province="湖北",cities=new List<string> {"武汉","宜昌","孝感","恩施" } }, 
                    new ProvinceClass {province="四川",cities=new List<string> {"成都","稻城","汶川","雅安","色达" } }, 
                }
            };
        }
        
    }
}
